<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/favicon.ico"/>
<title><?php if(isset($seotitle)): echo ($seotitle); else: ?>[title]<?php endif; ?> - 网站管理系统</title>
<link type="text/css" rel="stylesheet" href="/Public/admin/style/default.css" />
<script type="text/javascript" src="/Public/admin/js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="/Public/admin/plugin/artDialog/jquery.artDialog.js?skin=default"></script>
<script type="text/javascript" src="/Public/admin/plugin/artDialog/plugins/iframeTools.source.js"></script>
<script type="text/javascript" src="/Public/admin/plugin/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/Public/admin/js/reset.js"></script>
<script type="text/javascript" src="/Public/admin/js/master.js"></script>
<script type="text/javascript" src="/Public/admin/plugin/layer/layer.js"></script>

    <style type="text/css">
        .search{float:right;margin-right:30px;}
    </style>
</head>

<body>
<div class="mainWrap">
    <!--标题-->
    <form action="<?php echo U('sync_agent');?>" method="post" enctype="multipart/form-data">
    <div class="mainWrapHeader">
        <h1 class="mainWrapTit"><?php echo ($seotitle); ?>
            <a href="<?php echo U('add');?>" class="btn btn_edit"><span>添加</span></a>
            <!-- <label class="search">
                <input type="text" name="key" id="key" value="<?php echo ($key); ?>" class="sys_text"/>
                <a href="javascript:;" class="btn btn_search" id="search_btn"><span>搜索</span></a>
            </label> -->
        </h1>
    </div>
    </form>
    <!--标题-->
    
    <div class="mainWrapBd">
        
        <form action="<?php echo U('batchDo');?>" method="post" name="doForm" onsubmit="return batchConfirm(this);">
        <!--列表-->
        <table cellpadding="0" cellspacing="0" border="0" class="stdtable stdtablelist">
            <colgroup>
                <col style="width:50px;" />
                <col />
                <col />
                <col />
                <col />
                <col />
            </colgroup>
            <thead>
                <tr>
                    <th class="center">ID</th>
                    <th>用户名/手机号</th>
                    <th>昵称</th>
                    <th>类别</th>
                    <th>头像</th>
                    <th>视频</th>
                    <th>简介</th>      
                    <th>添加时间</th>
                    <th>操作</th>
     
                </tr>
            </thead>
            <tbody>
                <?php if(is_array($pages['lists'])): $i = 0; $__LIST__ = $pages['lists'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$fo): $mod = ($i % 2 );++$i;?><tr>
                    <td align="center"><?php echo ($fo['id']); ?></td>
                    <td><?php echo ($fo['mobile']); ?></td>
                    <td><?php echo ($fo['nickname']); ?></td>
                    <td><span>  <?php if($fo['type'] == '1'): ?>生<?php endif; ?>
                                <?php if($fo['type'] == '2'): ?>旦<?php endif; ?>
                                <?php if($fo['type'] == '3'): ?>净<?php endif; ?>
                                <?php if($fo['type'] == '4'): ?>丑<?php endif; ?>
                    </span></td>
                    <td>
                        
                        <img src="<?php echo ($fo['headimg']); ?>" style="width:80px;height:80px;"/>
                    </td>
                    <td>-</td>                
                    <td><?php echo ($fo['remark']); ?></td>
                    <td><?php echo (date("Y/m/d H:i",$fo['addtime'])); ?></td>
                    <td>
                        <a href="<?php echo U('edit',array('id'=>$fo['id']));?>">修改</a> &nbsp; 
                        <a href="<?php echo U('delete',array('id'=>$fo['id']));?>" onclick="return confirm('确认删除吗？')">删除</a> &nbsp;
                    </td>                  
                    
                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                <?php if($pages['total'] == 0): ?><tr>
                    <td align="center" class="data-nothing" colspan="9">暂无相关信息</td>
                </tr><?php endif; ?>
            </tbody>
        </table>
        <!--列表-->
        
        <!--工具-->
        <div class="tableTools clearfix">
            <div class="tableOptions fl">
            </div>
            <div class="fr">
                <?php echo ($pages['show']); ?>
            </div>
        </div>
        <!--工具-->
        </form>
        
    </div>
    
</div>
</body>
<script type="text/javascript">
    window.onload = function(){
        document.getElementById('search_btn').onclick = function(){
            var key = document.getElementById('key').value;
            location.href = "<?php echo U('Seller/index');?>?key=" + key;
        }
    }
</script>
</html>